package com.though.logistics.entity;

import java.util.List;

/**
 * 推送对象
 */
public class CallbackResponse {
	private String status; // 监控状态:polling:监控中，shutdown:结束，abort:中止，updateall：重新推送。其中当快递单为已签收时status=shutdown，
							// 当message为“3天查询无记录”或“60天无变化时”status= abort
							// ，对于stuatus=abort的状度，需要增加额外的处理逻辑
	private String message;
	private LastResult lastResult;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public LastResult getLastResult() {
		return lastResult;
	}

	public void setLastResult(LastResult lastResult) {
		this.lastResult = lastResult;
	}

	public static class LastResult {
		private String nu; // 单号
		private String ischeck; // 是否签收 0：未签收
		private String com; // 公司
		private String state; // 快递单当前签收状态，包括0在途中、1已揽收、2疑难、3已签收、4退签、5同城派送中、6退回、7转单等7个状态，其中4-7需要另外开通才有效
		private List<Data> data;

		public String getNu() {
			return nu;
		}

		public void setNu(String nu) {
			this.nu = nu;
		}

		public String getIscheck() {
			return ischeck;
		}

		public void setIscheck(String ischeck) {
			this.ischeck = ischeck;
		}

		public String getCom() {
			return com;
		}

		public void setCom(String com) {
			this.com = com;
		}

		public String getState() {
			return state;
		}

		public void setState(String state) {
			this.state = state;
		}

		public List<Data> getData() {
			return data;
		}

		public void setData(List<Data> data) {
			this.data = data;
		}
	}

	public static class Data {
		private String time;
		private String ftime;
		private String context;

		public String getTime() {
			return time;
		}

		public void setTime(String time) {
			this.time = time;
		}

		public String getFtime() {
			return ftime;
		}

		public void setFtime(String ftime) {
			this.ftime = ftime;
		}

		public String getContext() {
			return context;
		}

		public void setContext(String context) {
			this.context = context;
		}
	}
}
